package com.ruoyi.fundingSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fundingSys.mapper.TbFundingMapper;
import com.ruoyi.fundingSys.domain.TbFunding;
import com.ruoyi.fundingSys.service.ITbFundingService;

/**
 * 经费信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-07
 */
@Service
public class TbFundingServiceImpl implements ITbFundingService 
{
    @Autowired
    private TbFundingMapper tbFundingMapper;

    /**
     * 查询经费信息
     * 
     * @param id 经费信息主键
     * @return 经费信息
     */
    @Override
    public TbFunding selectTbFundingById(Long id)
    {
        return tbFundingMapper.selectTbFundingById(id);
    }

    /**
     * 查询经费信息列表
     * 
     * @param tbFunding 经费信息
     * @return 经费信息
     */
    @Override
    public List<TbFunding> selectTbFundingList(TbFunding tbFunding)
    {
        return tbFundingMapper.selectTbFundingList(tbFunding);
    }

    /**
     * 新增经费信息
     * 
     * @param tbFunding 经费信息
     * @return 结果
     */
    @Override
    public int insertTbFunding(TbFunding tbFunding)
    {
        return tbFundingMapper.insertTbFunding(tbFunding);
    }

    /**
     * 修改经费信息
     * 
     * @param tbFunding 经费信息
     * @return 结果
     */
    @Override
    public int updateTbFunding(TbFunding tbFunding)
    {
        return tbFundingMapper.updateTbFunding(tbFunding);
    }

    /**
     * 批量删除经费信息
     * 
     * @param ids 需要删除的经费信息主键
     * @return 结果
     */
    @Override
    public int deleteTbFundingByIds(Long[] ids)
    {
        return tbFundingMapper.deleteTbFundingByIds(ids);
    }

    /**
     * 删除经费信息信息
     * 
     * @param id 经费信息主键
     * @return 结果
     */
    @Override
    public int deleteTbFundingById(Long id)
    {
        return tbFundingMapper.deleteTbFundingById(id);
    }
}
